package com.dmz.workflow.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dmz.workflow.entity.FormGroup;
import com.dmz.workflow.vo.FormGroupVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 流程分组的DAO
 *
 */
public interface FormGroupMapper extends BaseMapper<FormGroup> {

    /**
     * 根据id修改对应组排序和名称
     **/
    void updateGroupById(List<FormGroupVo> vchGroupFormVO);

    FormGroup selectFormGroupById(Integer id);

    IPage<FormGroup> queryListById(@Param("page") Page<FormGroup> page, @Param(value = "echGroupForm") FormGroup echGroupForm);

    void deleteGroupById(Map<String, Object> map);

    List<FormGroupVo> selectListByCompanyId(Integer companyId);
}
